//
//  UIImage+HJAllIamge.h
//  JiaLeBang
//
//  Created by 紫平方 on 2017/6/27.
//  Copyright © 2017年 HJ. All rights reserved.
//

typedef NS_ENUM(NSUInteger, GradientType) {
    GradientTypeTopToBottom = 0,//从上到下
    GradientTypeLeftToRight = 1,//从左到右
    GradientTypeUpleftToLowright = 2,//左上到右下
    GradientTypeUprightToLowleft = 3,//右上到左下
};
#import <UIKit/UIKit.h>

@interface UIImage (HJAllIamge)
/**
 * 传入图片的名称,返回一张可拉伸不变形的图片
 *
 * @param imageName 图片名称
 *
 * @return 可拉伸图片
 */
+ (UIImage *)resizableImageWithName:(NSString *)imageName WithUrlNameString:(NSString *)urlString;


+ (UIImage *)gradientColorImageFromColors:(NSArray*)colors gradientType:(GradientType)gradientType imgSize:(CGSize)imgSize;


//传入颜色，获取一张该颜色的图片
+ (UIImage *)imageWithColor:(UIColor *)color andSize:(CGSize)size;

@end


@interface NoChangeColorImage : UIImage

@end

@interface UIImage(NoChangeColorImage)

- (NoChangeColorImage *)noChangeImage;

@end
